---
layout: m1x_soap
title: Attribute Set Group Remove
---

<h3><a name="product_attribute_set.groupRemove-Module%3AProductAttributeSetAPI"></a>Module: Product Attribute Set API</h3>

<h4><a name="product_attribute_set.groupRemove-Resource%3Aproductattributeset"></a>Resource: product_attribute_set</h4>


<h5><a name="product_attribute_set.groupRemove-Method%3A"></a>Method:</h5>

<ul>
	<li>product_attribute_set.groupRemove (SOAP V1)</li>
	<li>catalogProductAttributeSetGroupRemove (SOAP V2)</li>
</ul>


<p>Allows you to remove a group from an attribute set.</p>

<p><b>Arguments:</b></p>

<table><tbody>
<tr>
<th> Type </th>
<th> Name </th>
<th> Description </th>
</tr>
<tr>
<td> string </td>
<td> sessionId <br class="atl-forced-newline" /> </td>
<td> Session ID </td>
</tr>
<tr>
<td> string <br class="atl-forced-newline" /> </td>
<td> attributeGroupId </td>
<td> Group ID </td>
</tr>
</tbody></table>


<p><b>Return:</b></p>

<table><tbody>
<tr>
<th> Type </th>
<th> Description </th>
</tr>
<tr>
<td> boolean\int </td>
<td> True (1) if the group is removed </td>
</tr>
</tbody></table>


<p><b>Faults:</b></p>


<table><tbody>
<tr>
<th> Fault Code </th>
<th> Fault Message </th>
</tr>
<tr>
<td> 108 </td>
<td> Attribute group with requested id does not exist. </td>
</tr>
<tr>
<td> 115 </td>
<td> Error while removing group from attribute set. Details in error message. </td>
</tr>
<tr>
<td> 116 </td>
<td> Group can not be removed as it contains system attributes. </td>
</tr>
<tr>
<td> 117 </td>
<td> Group can not be removed as it contains attributes, used in configurable products. </td>
</tr>
</tbody></table>


<h4><a name="product_attribute_set.groupRemove-Examples"></a>Examples</h4>

<h5><a name="product_attribute_set.groupRemove-RequestExampleSOAPV1"></a>Request Example SOAP V1</h5>

<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<div>
		<pre class="theme: Default; brush: php; gutter: false">$proxy = new SoapClient('http://magentohost/api/soap/?wsdl');
$sessionId = $proxy-&gt;login('apiUser', 'apiKey');

$groupId = 70;

$result = $proxy-&gt;call(
    $sessionId,
    "product_attribute_set.groupRemove",
    array(
         $groupId
    )
);</pre>
		</div>
</div></div>

<h5><a name="product_attribute_set.groupRemove-RequestExampleSOAPV2"></a>Request Example SOAP V2</h5>

<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<div>
		<pre class="theme: Default; brush: php; gutter: false">$proxy = new SoapClient('http://magentohost/api/v2_soap/?wsdl'); // TODO : change url
$sessionId = $proxy-&gt;login('apiUser', 'apiKey'); // TODO : change login and pwd if necessary

$result = $proxy-&gt;catalogProductAttributeSetGroupRemove($sessionId, '70');
var_dump($result);</pre>
		</div>
</div></div>


<h5><a name="product_attribute_set.groupRemove-RequestExampleSOAPV2%28WSIComplianceMode%29"></a>Request Example SOAP V2 (WS-I Compliance Mode)</h5>

<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<div>
		<pre class="theme: Default; brush: php; gutter: false">$proxy = new SoapClient('http://magentohost/api/v2_soap/?wsdl');

$sessionId = $proxy-&gt;login((object)array('username' =&gt; 'apiUser', 'apiKey' =&gt; 'apiKey'));

$result = $proxy-&gt;catalogProductAttributeSetGroupRemove((object)array('sessionId' =&gt; $sessionId-&gt;result, 'attributeGroupId' =&gt; '70'));
var_dump($result-&gt;result);</pre>
		</div>
</div></div>


